package com.tang.user.service;


import com.github.pagehelper.PageInfo;
import com.tang.common.entity.user.Admin;

public interface AdminService {
    Admin find(String adminName, String password);
    PageInfo<Admin> list(String keywords, Integer currentPage, Integer pageSize);
    int deleteByAdminId(int adminId);
    int enableDisableByAdminId(int adminId);
    int deleteByAdminName(String username);
    Admin selectByAdminName(String userName);
    int updateAdmin(Admin admin);
    int addAdmin(Admin admin);
    Admin selectByTel(String tel);
    Admin selectByEmail(String email);

    Integer getAdminCount();
}
